package com.coincalf.feign;

import com.coincalf.dto.AutoOrderDto;
import com.coincalf.feign.hystrix.AutomaticOrderClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@FeignClient(value = "coincalf-service", fallback = AutomaticOrderClientFallback.class)
public interface AutomaticOrderClient {

    /**
     * 自动刷单
     */
    @RequestMapping(value = "/autoOrder/coinOrder", method = RequestMethod.POST)
    boolean autoOrder(@RequestBody AutoOrderDto autoOrderDto);
}
